<%@ page language="java" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>

		<title>商品管理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
		<link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
		<script type="text/javascript" src="../resource/js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="../resource/js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript"	src="../resource/js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="<%=basePath%>type/manageType.js"></script>
	    <link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	</head>

	<body><estateTag:security></estateTag:security>
		<center><jsp:include page="../index/top.jsp"></jsp:include></center>
		<div style="width: 100%;margin-top: 10px;" align="center">
		<input id="menuCls" type="hidden" value="312">
			<table width="100%" class="layoutTab">
				<tr>
			<!-- 	<td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
					<td valign="top">
						<table border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td valign="top" align="left">
									<form name="form" method="post">
										<table width="100%" border="0" cellpadding="1" cellspacing="1">
											<tr>
												<td>
												 <div  class="searchhead2" ></div>
												     <div  class="searchcenter h25" >
													<div align="left"  style="width:735px;float: left">
														<div class="searchline">
														产品类别：
													    <select id="bigCategory" onchange="bigCategoryChange();">
													    <option value="0">请选择</option>
															<s:iterator value="catrows">
																<option value="<s:property value="id"/>"><s:property value="name"/></option>
															</s:iterator>
														</select>
														<span id="smallCategory">
															<select id="categoryId">
																<option value="0">请选择</option>
															</select>
														</span>
														<img src="../resource/img/searchline.gif" align="middle"/>
														类别名称：
														<input type="text" name="name" id="name" size="18" />
														<span id="brandSelectDiv"></span>
														<span id="typeSelectDiv"></span>
														<img src="../resource/img/searchline.gif" align="middle"/>
														 <a id="searchid" href="javascript:onSearch()"></a>
													    <img src="../resource/img/searchline.gif" align="middle"/>
														</div>
														</div>
													 <div style="clear:both;"></div>
													</div>
													 <div  class="searchfloot2" ></div>
												</td>
											</tr>
											<tr>
												<td valign="top">
													<table id="messagegrid">
													</table>
												</td>
											</tr>
										</table>
									</form>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
	<div style="margin-top: 10px;">
			<center>
			</center>
		</div>		
		<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center>
		</body>
	<script type="text/javascript">
        var url1 ="<%=basePath%>"+"goods/goods_bulidSelect.shtml";
           $.ajax({
                  url: url1,
                  data: "name="+encodeURI(encodeURI(name.value)),
                  cache:false,
                  success: function(msg){
                     var obj=eval('('+msg+')');
                     var result=obj[0]["message"];
                     if(result.indexOf('<select')>0){
						var brandselectStr=result.substring(0,result.indexOf('</select>')+9);
						$("#brandSelectDiv").html(brandselectStr);
                     }
                     if(result.indexOf('</select><select')>0){
						var typeSelectStr=result.substring(result.indexOf('</select>')+9);
						$("#typeSelectDiv").html(typeSelectStr);
                     }
                 }
         });
	var selectStr="<select id='category'><option value='-1'>全部</option></select>";
	//$("#brandSelectDiv").html(brandSelectStr);
	//$("#typeSelectDiv").html(typeSelectStr);
	</script>
</html>
